
<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<!--                      page pour visualiser la liste des tweets des amis de celui qui est connecté        -->


<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      
      xmlns:f="http://java.sun.com/jsf/core">
    <head>
        <title>TODO supply a title</title>
    </head>
    <body>
        <p:commandLink  value="Déconnexion"  onclick="confirmation.show()"  style="margin-left: 1100px;color: #6495ED"/>
        <p:menubar style="width: 1233px;background-color: #034763;color: #0FFFFFF;margin-right: 0px;margin-left: 120px">  
            <p:menuitem value="Accueil"  action="accueil"/>  
            <p:menuitem value="Mon profil" action="monProfil" />
        </p:menubar> 
        <h:form>
            <p:dataTable value="#{mainController.listeTweets}" var="tweet" type="definition" 
                         selection="#{mainController.selectedTweet}" selectionMode="single"> 
                <p:column>
                   
                Nom: #{tweet.contact.name} #{tweet.contact.lastname} 
                <h:outputLabel value="#{tweet.title}"/>
                <h:outputLabel value="#{tweet.message}" /> 
                <h:inputText value="#{mainController.tweet1.message}"/>
                <p:commandButton value="tweeter" action="#{mainController.replay2()}"/>
                </p:column>
            </p:dataTable>


        </h:form>


        <p:confirmDialog id="confirmDialog" message="Voulez-vous quitter l'application?"  
                         header="Tweenit" severity="alert" widgetVar="confirmation">  

            <p:commandButton id="confirm" value="Quitter"  oncomplete="confirmation.hide()" action="login"  
                             ajax="false"    style="font-size: 14px"/>  
            <p:commandButton id="decline" value="Annuler" onclick="confirmation.hide()" ajax="false" type="button" style="font-size: 14px"/>   

        </p:confirmDialog>
        
    </body>
</html>
>